package com.gylang.gylanglog.service.impl;

import com.gylang.gylanglog.domian.SysLog;
import com.gylang.gylanglog.domian.SysLoginLog;
import com.gylang.gylanglog.repository.SysLogRepository;
import com.gylang.gylanglog.repository.SysLoginLogRepository;
import com.gylang.gylanglog.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author gylang,
 * @data 2019/12/4 14:31,
 * @DESC
 */
@Service
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    private SysLoginLogRepository sysLoginLogRepository;
    @Autowired
    private SysLogRepository sysLogRepository;


    @Override
    public SysLoginLog saveLoginLog(SysLoginLog sysLoginLog) {
        return sysLoginLogRepository.save(sysLoginLog);
    }

    @Override
    public SysLog saveSysLog(SysLog sysLog) {
        return sysLogRepository.save(sysLog);
    }
}
